-- GENERATED SPELL FOR [Centipaar Stinger] --


function spell0_5456(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_5456', 601, 1)
end

function spell1_5456(pUnit, Event) --@Venom Sting,n/a--
pUnit:FullCastSpellOnTarget(5416,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5456', 45000, 1)
end

function Sorts_5456(pUnit, Event)
local choix_sorts_5456 = math.random(0, 1)
if choix_sorts_5456 == 0 then
pUnit:RegisterEvent('spell0_5456', 1, 1)
end
if choix_sorts_5456 == 1 then
pUnit:RegisterEvent('spell1_5456', 1, 1)
end
end

function mob5456_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5456', math.random(1500, 3000), 1)
end

function mob5456_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5456_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5456_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5456, 1, 'mob5456_Action')
RegisterUnitEvent(5456, 2, 'mob5456_Leave')
RegisterUnitEvent(5456, 3, 'mob5456_Kill')
RegisterUnitEvent(5456, 4, 'mob5456_Die')
